package day03;

/**
 运算符之三：比较运算符
 结论:
 1.比较运算符的结果是boolean类型
 2.区分==和=
 * @author Smartloe
 * @create 2021-04-01 20:42
 */
public class CompareTest {
    public static void main(String[] args) {
        int i = 20;
        int j = 10;
        System.out.println(i==j);//false
        System.out.println(i = j);//10

        boolean b1 = true;
        boolean b2 = false;
        System.out.println(b2==b1);//false
        System.out.println(b2 = b1);//true
    }
}
